package com.demo.exce;

/**
 * @Author WaveHi
 * @Date 26/7/2021 下午 3:47
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description continue演示
 */
public class ContinueDemo {

    public static void main(String[] args) {

        //循环输出数字，遇到4跳过
        for(int i = 1;i <= 10;i++){
            //判断
            if(i == 4){
                continue;
            }
            System.out.println(i);
        }

    }

}
